!(function (t) {
  var e = {};
  function r(n) {
    if (e[n]) return e[n].exports;
    var o = (e[n] = { i: n, l: !1, exports: {} });
    return t[n].call(o.exports, o, o.exports, r), (o.l = !0), o.exports;
  }
  (r.m = t),
    (r.c = e),
    (r.d = function (t, e, n) {
      r.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: n });
    }),
    (r.r = function (t) {
      "undefined" !== typeof Symbol &&
        Symbol.toStringTag &&
        Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }),
        Object.defineProperty(t, "__esModule", { value: !0 });
    }),
    (r.t = function (t, e) {
      if ((1 & e && (t = r(t)), 8 & e)) return t;
      if (4 & e && "object" === typeof t && t && t.__esModule) return t;
      var n = Object.create(null);
      if (
        (r.r(n),
        Object.defineProperty(n, "default", { enumerable: !0, value: t }),
        2 & e && "string" != typeof t)
      )
        for (var o in t)
          r.d(
            n,
            o,
            function (e) {
              return t[e];
            }.bind(null, o)
          );
      return n;
    }),
    (r.n = function (t) {
      var e =
        t && t.__esModule
          ? function () {
              return t.default;
            }
          : function () {
              return t;
            };
      return r.d(e, "a", e), e;
    }),
    (r.o = function (t, e) {
      return Object.prototype.hasOwnProperty.call(t, e);
    }),
    (r.p = "/"),
    r((r.s = 158));
})({
  13: function (module, __webpack_exports__, __webpack_require__) {
    "use strict";
    __webpack_require__.d(__webpack_exports__, "g", function () {
      return loadJS;
    }),
      __webpack_require__.d(__webpack_exports__, "d", function () {
        return getConfig;
      }),
      __webpack_require__.d(__webpack_exports__, "j", function () {
        return setAttrByLabel;
      }),
      __webpack_require__.d(__webpack_exports__, "e", function () {
        return getDataAndKeys;
      }),
      __webpack_require__.d(__webpack_exports__, "k", function () {
        return setGlobalVariableValue;
      }),
      __webpack_require__.d(__webpack_exports__, "c", function () {
        return formatValue;
      }),
      __webpack_require__.d(__webpack_exports__, "b", function () {
        return ensureArray;
      }),
      __webpack_require__.d(__webpack_exports__, "f", function () {
        return getEditorData;
      }),
      __webpack_require__.d(__webpack_exports__, "l", function () {
        return setPanelStateByName;
      }),
      __webpack_require__.d(__webpack_exports__, "i", function () {
        return randomString;
      }),
      __webpack_require__.d(__webpack_exports__, "h", function () {
        return raiseEvent;
      }),
      __webpack_require__.d(__webpack_exports__, "a", function () {
        return addToRepeater;
      });
    var D_Axhub_AxhubWeb_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ =
        __webpack_require__(20),
      scriptjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54),
      scriptjs__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(
        scriptjs__WEBPACK_IMPORTED_MODULE_1__
      ),
      _antv_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37);
    function _regeneratorRuntime() {
      _regeneratorRuntime = function () {
        return e;
      };
      var t,
        e = {},
        r = Object.prototype,
        n = r.hasOwnProperty,
        o =
          Object.defineProperty ||
          function (t, e, r) {
            t[e] = r.value;
          },
        a = "function" == typeof Symbol ? Symbol : {},
        i = a.iterator || "@@iterator",
        u = a.asyncIterator || "@@asyncIterator",
        c = a.toStringTag || "@@toStringTag";
      function l(t, e, r) {
        return (
          Object.defineProperty(t, e, {
            value: r,
            enumerable: !0,
            configurable: !0,
            writable: !0,
          }),
          t[e]
        );
      }
      try {
        l({}, "");
      } catch (t) {
        l = function (t, e, r) {
          return (t[e] = r);
        };
      }
      function s(t, e, r, n) {
        var a = e && e.prototype instanceof y ? e : y,
          i = Object.create(a.prototype),
          u = new I(n || []);
        return o(i, "_invoke", { value: j(t, r, u) }), i;
      }
      function f(t, e, r) {
        try {
          return { type: "normal", arg: t.call(e, r) };
        } catch (t) {
          return { type: "throw", arg: t };
        }
      }
      e.wrap = s;
      var p = "suspendedStart",
        d = "executing",
        h = "completed",
        v = {};
      function y() {}
      function _() {}
      function g() {}
      var b = {};
      l(b, i, function () {
        return this;
      });
      var m = Object.getPrototypeOf,
        w = m && m(m(P([])));
      w && w !== r && n.call(w, i) && (b = w);
      var x = (g.prototype = y.prototype = Object.create(b));
      function O(t) {
        ["next", "throw", "return"].forEach(function (e) {
          l(t, e, function (t) {
            return this._invoke(e, t);
          });
        });
      }
      function E(t, e) {
        function r(o, a, i, u) {
          var c = f(t[o], t, a);
          if ("throw" !== c.type) {
            var l = c.arg,
              s = l.value;
            return s && "object" == typeof s && n.call(s, "__await")
              ? e.resolve(s.__await).then(
                  function (t) {
                    r("next", t, i, u);
                  },
                  function (t) {
                    r("throw", t, i, u);
                  }
                )
              : e.resolve(s).then(
                  function (t) {
                    (l.value = t), i(l);
                  },
                  function (t) {
                    return r("throw", t, i, u);
                  }
                );
          }
          u(c.arg);
        }
        var a;
        o(this, "_invoke", {
          value: function (t, n) {
            function o() {
              return new e(function (e, o) {
                r(t, n, e, o);
              });
            }
            return (a = a ? a.then(o, o) : o());
          },
        });
      }
      function j(e, r, n) {
        var o = p;
        return function (a, i) {
          if (o === d) throw new Error("Generator is already running");
          if (o === h) {
            if ("throw" === a) throw i;
            return { value: t, done: !0 };
          }
          for (n.method = a, n.arg = i; ; ) {
            var u = n.delegate;
            if (u) {
              var c = k(u, n);
              if (c) {
                if (c === v) continue;
                return c;
              }
            }
            if ("next" === n.method) n.sent = n._sent = n.arg;
            else if ("throw" === n.method) {
              if (o === p) throw ((o = h), n.arg);
              n.dispatchException(n.arg);
            } else "return" === n.method && n.abrupt("return", n.arg);
            o = d;
            var l = f(e, r, n);
            if ("normal" === l.type) {
              if (((o = n.done ? h : "suspendedYield"), l.arg === v)) continue;
              return { value: l.arg, done: n.done };
            }
            "throw" === l.type &&
              ((o = h), (n.method = "throw"), (n.arg = l.arg));
          }
        };
      }
      function k(e, r) {
        var n = r.method,
          o = e.iterator[n];
        if (o === t)
          return (
            (r.delegate = null),
            ("throw" === n &&
              e.iterator.return &&
              ((r.method = "return"),
              (r.arg = t),
              k(e, r),
              "throw" === r.method)) ||
              ("return" !== n &&
                ((r.method = "throw"),
                (r.arg = new TypeError(
                  "The iterator does not provide a '" + n + "' method"
                )))),
            v
          );
        var a = f(o, e.iterator, r.arg);
        if ("throw" === a.type)
          return (r.method = "throw"), (r.arg = a.arg), (r.delegate = null), v;
        var i = a.arg;
        return i
          ? i.done
            ? ((r[e.resultName] = i.value),
              (r.next = e.nextLoc),
              "return" !== r.method && ((r.method = "next"), (r.arg = t)),
              (r.delegate = null),
              v)
            : i
          : ((r.method = "throw"),
            (r.arg = new TypeError("iterator result is not an object")),
            (r.delegate = null),
            v);
      }
      function A(t) {
        var e = { tryLoc: t[0] };
        1 in t && (e.catchLoc = t[1]),
          2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
          this.tryEntries.push(e);
      }
      function L(t) {
        var e = t.completion || {};
        (e.type = "normal"), delete e.arg, (t.completion = e);
      }
      function I(t) {
        (this.tryEntries = [{ tryLoc: "root" }]),
          t.forEach(A, this),
          this.reset(!0);
      }
      function P(e) {
        if (e || "" === e) {
          var r = e[i];
          if (r) return r.call(e);
          if ("function" == typeof e.next) return e;
          if (!isNaN(e.length)) {
            var o = -1,
              a = function r() {
                for (; ++o < e.length; )
                  if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
                return (r.value = t), (r.done = !0), r;
              };
            return (a.next = a);
          }
        }
        throw new TypeError(typeof e + " is not iterable");
      }
      return (
        (_.prototype = g),
        o(x, "constructor", { value: g, configurable: !0 }),
        o(g, "constructor", { value: _, configurable: !0 }),
        (_.displayName = l(g, c, "GeneratorFunction")),
        (e.isGeneratorFunction = function (t) {
          var e = "function" == typeof t && t.constructor;
          return (
            !!e &&
            (e === _ || "GeneratorFunction" === (e.displayName || e.name))
          );
        }),
        (e.mark = function (t) {
          return (
            Object.setPrototypeOf
              ? Object.setPrototypeOf(t, g)
              : ((t.__proto__ = g), l(t, c, "GeneratorFunction")),
            (t.prototype = Object.create(x)),
            t
          );
        }),
        (e.awrap = function (t) {
          return { __await: t };
        }),
        O(E.prototype),
        l(E.prototype, u, function () {
          return this;
        }),
        (e.AsyncIterator = E),
        (e.async = function (t, r, n, o, a) {
          void 0 === a && (a = Promise);
          var i = new E(s(t, r, n, o), a);
          return e.isGeneratorFunction(r)
            ? i
            : i.next().then(function (t) {
                return t.done ? t.value : i.next();
              });
        }),
        O(x),
        l(x, c, "Generator"),
        l(x, i, function () {
          return this;
        }),
        l(x, "toString", function () {
          return "[object Generator]";
        }),
        (e.keys = function (t) {
          var e = Object(t),
            r = [];
          for (var n in e) r.push(n);
          return (
            r.reverse(),
            function t() {
              for (; r.length; ) {
                var n = r.pop();
                if (n in e) return (t.value = n), (t.done = !1), t;
              }
              return (t.done = !0), t;
            }
          );
        }),
        (e.values = P),
        (I.prototype = {
          constructor: I,
          reset: function (e) {
            if (
              ((this.prev = 0),
              (this.next = 0),
              (this.sent = this._sent = t),
              (this.done = !1),
              (this.delegate = null),
              (this.method = "next"),
              (this.arg = t),
              this.tryEntries.forEach(L),
              !e)
            )
              for (var r in this)
                "t" === r.charAt(0) &&
                  n.call(this, r) &&
                  !isNaN(+r.slice(1)) &&
                  (this[r] = t);
          },
          stop: function () {
            this.done = !0;
            var t = this.tryEntries[0].completion;
            if ("throw" === t.type) throw t.arg;
            return this.rval;
          },
          dispatchException: function (e) {
            if (this.done) throw e;
            var r = this;
            function o(n, o) {
              return (
                (u.type = "throw"),
                (u.arg = e),
                (r.next = n),
                o && ((r.method = "next"), (r.arg = t)),
                !!o
              );
            }
            for (var a = this.tryEntries.length - 1; a >= 0; --a) {
              var i = this.tryEntries[a],
                u = i.completion;
              if ("root" === i.tryLoc) return o("end");
              if (i.tryLoc <= this.prev) {
                var c = n.call(i, "catchLoc"),
                  l = n.call(i, "finallyLoc");
                if (c && l) {
                  if (this.prev < i.catchLoc) return o(i.catchLoc, !0);
                  if (this.prev < i.finallyLoc) return o(i.finallyLoc);
                } else if (c) {
                  if (this.prev < i.catchLoc) return o(i.catchLoc, !0);
                } else {
                  if (!l)
                    throw new Error("try statement without catch or finally");
                  if (this.prev < i.finallyLoc) return o(i.finallyLoc);
                }
              }
            }
          },
          abrupt: function (t, e) {
            for (var r = this.tryEntries.length - 1; r >= 0; --r) {
              var o = this.tryEntries[r];
              if (
                o.tryLoc <= this.prev &&
                n.call(o, "finallyLoc") &&
                this.prev < o.finallyLoc
              ) {
                var a = o;
                break;
              }
            }
            a &&
              ("break" === t || "continue" === t) &&
              a.tryLoc <= e &&
              e <= a.finallyLoc &&
              (a = null);
            var i = a ? a.completion : {};
            return (
              (i.type = t),
              (i.arg = e),
              a
                ? ((this.method = "next"), (this.next = a.finallyLoc), v)
                : this.complete(i)
            );
          },
          complete: function (t, e) {
            if ("throw" === t.type) throw t.arg;
            return (
              "break" === t.type || "continue" === t.type
                ? (this.next = t.arg)
                : "return" === t.type
                ? ((this.rval = this.arg = t.arg),
                  (this.method = "return"),
                  (this.next = "end"))
                : "normal" === t.type && e && (this.next = e),
              v
            );
          },
          finish: function (t) {
            for (var e = this.tryEntries.length - 1; e >= 0; --e) {
              var r = this.tryEntries[e];
              if (r.finallyLoc === t)
                return this.complete(r.completion, r.afterLoc), L(r), v;
            }
          },
          catch: function (t) {
            for (var e = this.tryEntries.length - 1; e >= 0; --e) {
              var r = this.tryEntries[e];
              if (r.tryLoc === t) {
                var n = r.completion;
                if ("throw" === n.type) {
                  var o = n.arg;
                  L(r);
                }
                return o;
              }
            }
            throw new Error("illegal catch attempt");
          },
          delegateYield: function (e, r, n) {
            return (
              (this.delegate = { iterator: P(e), resultName: r, nextLoc: n }),
              "next" === this.method && (this.arg = t),
              v
            );
          },
        }),
        e
      );
    }
    var $ = window.$,
      $axure = window.$axure,
      loadJS = function (t) {
        return new Promise(function (e) {
          return scriptjs__WEBPACK_IMPORTED_MODULE_1___default.a.get(
            t,
            function () {
              e(!0);
            }
          );
        });
      },
      replaceAll = function (t, e, r) {
        return (
          (e = e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1")),
          t.replace(new RegExp(e, "g"), r)
        );
      },
      bool = function (t) {
        return !(
          "false" === t ||
          0 === t ||
          null === t ||
          void 0 === t ||
          "" === t ||
          !1 === t
        );
      },
      getGlobalConfig = function () {
        if (window.acpGlobalConfig) return window.acpGlobalConfig;
        var t = {};
        return (
          window.$axure.internal(function (e) {
            e.pageData.variables.map(function (r) {
              (r = r.replaceAll("_", ".")),
                (t[r] = formatValue(
                  e.globalVariableProvider.getVariableValue(r)
                ));
            });
          }),
          (window.acpGlobalConfig = t),
          t
        );
      },
      getRepeater = function (t) {
        var e;
        return (
          window
            .$axure(function (t) {
              return "repeater" === t.type;
            })
            .each(function (r, n) {
              t === n && (e = r);
            }),
          e
        );
      },
      getConfig = function (t) {
        var e =
            arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          r =
            arguments.length > 2 && void 0 !== arguments[2]
              ? arguments[2]
              : null;
        try {
          var n = {},
            o = r || getRepeaterRowsAndColumns(t).rows,
            a = e;
          return (
            r
              ? o.map(function (t) {
                  if (t.item) {
                    var e = a[t.item] || t.item;
                    n[e] = t.value;
                  }
                })
              : o.map(function (t) {
                  if (t.item) {
                    var e,
                      r =
                        a[t.item.text.trim().toLowerCase()] ||
                        t.item.text.trim();
                    if (t.value)
                      (e =
                        "image" === t.value.type
                          ? "./" + t.value.img.s0
                          : "page" === t.value.type
                          ? "./" + t.value.url
                          : t.value.text.trim()),
                        (n[r] = "code" !== r ? formatValue(e) : e);
                  }
                }),
            n
          );
        } catch (i) {
          return (
            console.error(i),
            console.log("Error\uff1aCan not get config by  " + t),
            null
          );
        }
      },
      getAnnotations = function (t, e) {
        try {
          var r = [],
            n = getRepeaterRowsAndColumns(t),
            o = n.rows,
            a = n.columns,
            i = e;
          return (
            a.map(function (t, e) {
              if (e > 0) {
                var n = {};
                o.map(function (e) {
                  if (e.option) {
                    var r =
                        i[e.option.text.trim().toLowerCase()] ||
                        e.option.text.trim(),
                      o = e[t].text.trim();
                    o && ((o = formatValue(o)), setAttrByLabel(n, r, o));
                  }
                }),
                  r.push(n);
              }
            }),
            r
          );
        } catch (u) {
          return (
            console.error(u),
            console.error("Error\uff1aCan not get annotations by  " + t),
            null
          );
        }
      },
      isIE = function () {
        return !(!window.ActiveXObject && !("ActiveXObject" in window));
      },
      setAttrByLabel = function (t, e, r) {
        var n = [];
        (n = e.split(".")).forEach(function (e, o, a) {
          if (e.endsWith("]")) {
            var i = /\[(\d+)\]$/.exec(e);
            if (i) {
              e = e.replace(i[0], "");
              var u = Number(i[1]);
              (t[e] && t[e].constructor === Array) || (t[e] = []),
                o == n.length - 1
                  ? (t[e][u] = r)
                  : ((t[e][u] && t[e][u].constructor === Object) ||
                      (t[e][u] = {}),
                    (t = t[e][u]));
            }
          } else o == n.length - 1 ? (t[e] = r) : ((t[e] && t[e].constructor === Object) || (t[e] = {}), (t = t[e]));
        });
      },
      getDataAndKeys = function (t) {
        var e = [],
          r = getRepeaterRowsAndColumns(t),
          n = r.rows,
          o = r.columns;
        return {
          data: n.map(function (t, r) {
            e = Object.getOwnPropertyNames(t);
            var n = {};
            return (
              e.map(function (e, r) {
                var o = t[e].text || null;
                t[e].img
                  ? (o = t[e].img.s0 || o)
                  : "page" === t[e].type && (o = "./" + t[e].url),
                  (n[e] = isNaN(o) || null === o ? o : Number(o)),
                  !r &&
                    isNaN(o) &&
                    (n[e] = n[e].replace(RegExp("{br}", "g"), "\n"));
              }),
              n
            );
          }),
          keys: o,
        };
      },
      getRepeaterRowsAndColumns = function (t, e, r) {
        var n;
        window.$axure.internal(function (t) {
          n = t;
        });
        var o = e;
        void 0 === o
          ? (o = n.repeater.getAllItemIds(t))
          : "object" != typeof o && (o = [o]),
          void 0 === r
            ? (r = getRepeater(t).dataProps)
            : "object" != typeof r && (r = [r]),
          (e = []);
        for (var a = 0, i = o.length; a < i; a++) {
          for (var u = {}, c = 0, l = r.length; c < l; c++) {
            var s = r[c].toLowerCase(),
              f = o[a];
            "string" == typeof f &&
              -1 != f.indexOf("-") &&
              (f = n.repeater.getItemIdFromElementId(f));
            var p = n.repeater.getData({}, t, o[a], s, "data");
            "object" === typeof p
              ? (void 0 === (p = n.deepCopy(p)).type && (p.type = "text"),
                (u[s] = p))
              : (u[s] = { type: "text", text: p });
          }
          e.push(u);
        }
        return { columns: r, rows: e };
      },
      setGlobalVariableValue = function (t, e) {
        var r;
        window.$axure.internal(function (t) {
          r = t;
        }),
          r.globalVariableProvider.setVariableValue(t, e, !1);
      },
      getGlobalVariableValue = function (t, e) {
        var r;
        return (
          window.$axure.internal(function (t) {
            r = t;
          }),
          r.globalVariableProvider.getVariableValue(t, e, !1)
        );
      },
      formatNumber = function (t) {
        return !isNaN(t) && t ? Number(t) : t;
      },
      formatValue = function formatValue(str) {
        if ("" !== str && void 0 !== str && null !== str) {
          if ("string" !== typeof str) return str;
          if (!isNaN(str)) return Number(str);
          if (-1 !== ["true", "false"].indexOf(str)) return "true" === str;
          try {
            return JSON.parse(str);
          } catch (error) {}
          if (0 === str.indexOf("function("))
            return eval("(false || " + str + ")");
          var reg = /\[(.+?)\]/g,
            res = reg.exec(str);
          return res
            ? res[1].split(",").map(function (t) {
                return isNaN(t)
                  ? t.replaceAll("'", "").replaceAll('"', "")
                  : Number(t);
              })
            : -1 !== str.indexOf("|")
            ? str.split("|").map(function (t) {
                return isNaN(t) ? t : Number(t);
              })
            : -1 !== str.indexOf(",") && -1 === str.indexOf("rgb")
            ? str.split(",").map(function (t) {
                return isNaN(t) ? t : Number(t);
              })
            : str;
        }
      },
      ensureArray = function (t) {
        return Array.isArray(t) ? t : void 0 === t ? [] : [t];
      },
      axGet = function (t) {
        return new Promise(function (e, r) {
          window.$.ajax({
            type: "GET",
            url: t,
            success: function (t) {
              e(t);
            },
            error: function (t, e) {
              r(e);
            },
          });
        });
      };
    function chartConfigToRepeaterConfig(t) {
      var e = {};
      return (
        (function t(r, n) {
          for (var o in r) {
            var a = r[o],
              i = n ? "".concat(n, ".").concat(o) : o;
            "object" !== typeof a || Array.isArray(a) ? (e[i] = a) : t(a, i);
          }
        })(t, ""),
        e
      );
    }
    var getKeysByData = function (t) {
        return Array.isArray(t)
          ? Object.keys(t[0])
          : t.children
          ? Object.keys(
              (null === t || void 0 === t ? void 0 : t.children[0]) || {}
            )
          : [];
      },
      getCache = function (t) {
        for (
          var e = t + "=",
            r = decodeURIComponent(document.cookie).split(";"),
            n = 0;
          n < r.length;
          n++
        ) {
          for (var o = r[n]; " " === o.charAt(0); ) o = o.substring(1);
          if (0 === o.indexOf(e)) {
            var a = o.substring(e.length, o.length);
            try {
              return JSON.parse(a);
            } catch (i) {
              return a;
            }
          }
        }
        return "";
      },
      convertSVGToCanvas = function (t, e, r) {
        var n = new Blob([t], { type: "image/svg+xml" }),
          o = URL.createObjectURL(n),
          a = document.createElement("canvas");
        (a.width = e), (a.height = r);
        var i = new Image();
        return (
          (i.crossorigin = "anonymous"),
          i.setAttribute("crossorigin", "anonymous"),
          (i.src = o),
          new Promise(function (t, n) {
            (i.onload = function () {
              URL.revokeObjectURL(o);
              var n = a.getContext("2d");
              (n.fillStyle = "rgba(255, 255, 255, 0)"),
                n.fillRect(0, 0, e, r),
                n.drawImage(i, 0, 0, e, r),
                t(a);
            }),
              (i.onerror = function (e) {
                URL.revokeObjectURL(o), console.warn(e), t(null);
              });
          })
        );
      },
      getEditorData = (function () {
        var t = Object(
          D_Axhub_AxhubWeb_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__.a
        )(
          _regeneratorRuntime().mark(function t(e, r) {
            var n,
              o,
              a,
              i,
              u,
              c,
              l,
              s,
              f,
              p,
              d,
              h,
              v,
              y,
              _,
              g,
              b,
              m,
              w = arguments;
            return _regeneratorRuntime().wrap(
              function (t) {
                for (;;)
                  switch ((t.prev = t.next)) {
                    case 0:
                      if (
                        ((u = w.length > 2 && void 0 !== w[2] ? w[2] : ""),
                        (c = window.$),
                        (l =
                          c(e).find("img#".concat(e.id, "_img")).attr("src") ||
                          ""),
                        (s = null),
                        (f = !1),
                        !l.endsWith(".svg") ||
                          window.location.href.startsWith("file://"))
                      ) {
                        t.next = 17;
                        break;
                      }
                      return (t.prev = 6), (t.next = 9), axGet(l);
                    case 9:
                      (p = t.sent),
                        (d = JSON.parse(
                          c(p).find("svg").attr("AxData") ||
                            c(p).find("#config").text() ||
                            "{}"
                        )),
                        r.axhubEditorConfig
                          ? ((null === (h = r.axhubEditorConfig) || void 0 === h
                              ? void 0
                              : h.time) || 0) <
                              ((null === d || void 0 === d ? void 0 : d.time) ||
                                0) && (r.axhubEditorConfig = d)
                          : (r.axhubEditorConfig = d),
                        (t.next = 17);
                      break;
                    case 14:
                      (t.prev = 14), (t.t0 = t.catch(6)), console.error(t.t0);
                    case 17:
                      if (
                        (u &&
                          (v = getGlobalConfig())[u] &&
                          (((null === (y = r.axhubEditorConfig) || void 0 === y
                            ? void 0
                            : y.time) || 0) <
                          ((null === (_ = v[u]) || void 0 === _
                            ? void 0
                            : _.time) || 0)
                            ? (r.axhubEditorConfig = Object(
                                _antv_util__WEBPACK_IMPORTED_MODULE_2__.a
                              )(
                                {},
                                (null === (g = r) || void 0 === g
                                  ? void 0
                                  : g.axhubEditorConfig) || {},
                                v[u] || {}
                              ))
                            : (r.axhubEditorConfig = Object(
                                _antv_util__WEBPACK_IMPORTED_MODULE_2__.a
                              )(
                                {},
                                v[u] || {},
                                (null === (b = r) || void 0 === b
                                  ? void 0
                                  : b.axhubEditorConfig) || {}
                              ))),
                        !r.axhubEditorConfig)
                      ) {
                        t.next = 37;
                        break;
                      }
                      (t.t1 = r.configSource),
                        (t.next =
                          "repeater" === t.t1
                            ? 22
                            : "editor" === t.t1
                            ? 23
                            : 25);
                      break;
                    case 22:
                      return t.abrupt("break", 27);
                    case 23:
                      return (
                        (r =
                          (null === (n = r.axhubEditorConfig) || void 0 === n
                            ? void 0
                            : n.config) || {}),
                        t.abrupt("break", 27)
                      );
                    case 25:
                      return (
                        (r = Object(_antv_util__WEBPACK_IMPORTED_MODULE_2__.a)(
                          r,
                          (null === (o = r.axhubEditorConfig) || void 0 === o
                            ? void 0
                            : o.config) || {}
                        )),
                        t.abrupt("break", 27)
                      );
                    case 27:
                      (t.t2 = r.dataSource),
                        (t.next =
                          "repeater" === t.t2
                            ? 30
                            : "editor" === t.t2
                            ? 31
                            : 33);
                      break;
                    case 30:
                      return t.abrupt("break", 35);
                    case 31:
                      return (
                        (s = (null === (a = r.axhubEditorConfig) || void 0 === a
                          ? void 0
                          : a.data) || { data: [], keys: [] }),
                        t.abrupt("break", 35)
                      );
                    case 33:
                      return (
                        (s =
                          (null === (i = r.axhubEditorConfig) || void 0 === i
                            ? void 0
                            : i.data) || s),
                        t.abrupt("break", 35)
                      );
                    case 35:
                      (f = window
                        .atob(
                          (null === (m = r.axhubEditorConfig) || void 0 === m
                            ? void 0
                            : m.u) || ""
                        )
                        .endsWith("b1")),
                        delete r.axhubEditorConfig;
                    case 37:
                      return t.abrupt("return", {
                        config: r,
                        data: s,
                        isEnt: f,
                      });
                    case 38:
                    case "end":
                      return t.stop();
                  }
              },
              t,
              null,
              [[6, 14]]
            );
          })
        );
        return function (e, r) {
          return t.apply(this, arguments);
        };
      })(),
      setPanelStateByName = function (t, e) {
        for (
          var r =
              arguments.length > 2 && void 0 !== arguments[2]
                ? arguments[2]
                : {},
            n = arguments.length > 3 && void 0 !== arguments[3] && arguments[3],
            o = function (t) {
              for (var e = [], r = 1; ; r++) {
                var n = $("#" + t + "_state" + (r - 1));
                if (!n.length) break;
                var o = n.attr("data-label");
                (e[r] = o), (e[o] = r);
              }
              return e;
            },
            a = 0;
          a < t.length;
          a++
        ) {
          var i = t[a],
            u = o(i)[e];
          u && window.$axure("#" + i).SetPanelState(u, r, n);
        }
      };
    function randomString(t) {
      t = t || 32;
      for (
        var e = "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",
          r = e.length,
          n = "",
          o = 0;
        o < t;
        o++
      )
        n += e.charAt(Math.floor(Math.random() * r));
      return n;
    }
    var raiseEvent = function (t, e) {
        var r;
        window.$axure.internal(function (t) {
          r = t;
        }),
          r.initializeObjectEvents(
            r(function (e, r) {
              return r === t;
            })
          ),
          r.event.raiseSyntheticEvent(t, e);
      },
      addToRepeater = function (t, e) {
        var r;
        window.$axure.internal(function (t) {
          r = t;
        }),
          r.repeater.addItem(t, e, r.getEventInfoFromEvent(null, !1, t)),
          r.repeater.refreshRepeater(t);
      };
  },
  158: function (t, e, r) {
    t.exports = r(159);
  },
  159: function (t, e, r) {
    "use strict";
    r.r(e);
    var n = r(20),
      o = r(13),
      a = r(37);
    function i() {
      i = function () {
        return e;
      };
      var t,
        e = {},
        r = Object.prototype,
        n = r.hasOwnProperty,
        o =
          Object.defineProperty ||
          function (t, e, r) {
            t[e] = r.value;
          },
        a = "function" == typeof Symbol ? Symbol : {},
        u = a.iterator || "@@iterator",
        c = a.asyncIterator || "@@asyncIterator",
        l = a.toStringTag || "@@toStringTag";
      function s(t, e, r) {
        return (
          Object.defineProperty(t, e, {
            value: r,
            enumerable: !0,
            configurable: !0,
            writable: !0,
          }),
          t[e]
        );
      }
      try {
        s({}, "");
      } catch (t) {
        s = function (t, e, r) {
          return (t[e] = r);
        };
      }
      function f(t, e, r, n) {
        var a = e && e.prototype instanceof _ ? e : _,
          i = Object.create(a.prototype),
          u = new P(n || []);
        return o(i, "_invoke", { value: k(t, r, u) }), i;
      }
      function p(t, e, r) {
        try {
          return { type: "normal", arg: t.call(e, r) };
        } catch (t) {
          return { type: "throw", arg: t };
        }
      }
      e.wrap = f;
      var d = "suspendedStart",
        h = "executing",
        v = "completed",
        y = {};
      function _() {}
      function g() {}
      function b() {}
      var m = {};
      s(m, u, function () {
        return this;
      });
      var w = Object.getPrototypeOf,
        x = w && w(w(N([])));
      x && x !== r && n.call(x, u) && (m = x);
      var O = (b.prototype = _.prototype = Object.create(m));
      function E(t) {
        ["next", "throw", "return"].forEach(function (e) {
          s(t, e, function (t) {
            return this._invoke(e, t);
          });
        });
      }
      function j(t, e) {
        function r(o, a, i, u) {
          var c = p(t[o], t, a);
          if ("throw" !== c.type) {
            var l = c.arg,
              s = l.value;
            return s && "object" == typeof s && n.call(s, "__await")
              ? e.resolve(s.__await).then(
                  function (t) {
                    r("next", t, i, u);
                  },
                  function (t) {
                    r("throw", t, i, u);
                  }
                )
              : e.resolve(s).then(
                  function (t) {
                    (l.value = t), i(l);
                  },
                  function (t) {
                    return r("throw", t, i, u);
                  }
                );
          }
          u(c.arg);
        }
        var a;
        o(this, "_invoke", {
          value: function (t, n) {
            function o() {
              return new e(function (e, o) {
                r(t, n, e, o);
              });
            }
            return (a = a ? a.then(o, o) : o());
          },
        });
      }
      function k(e, r, n) {
        var o = d;
        return function (a, i) {
          if (o === h) throw new Error("Generator is already running");
          if (o === v) {
            if ("throw" === a) throw i;
            return { value: t, done: !0 };
          }
          for (n.method = a, n.arg = i; ; ) {
            var u = n.delegate;
            if (u) {
              var c = A(u, n);
              if (c) {
                if (c === y) continue;
                return c;
              }
            }
            if ("next" === n.method) n.sent = n._sent = n.arg;
            else if ("throw" === n.method) {
              if (o === d) throw ((o = v), n.arg);
              n.dispatchException(n.arg);
            } else "return" === n.method && n.abrupt("return", n.arg);
            o = h;
            var l = p(e, r, n);
            if ("normal" === l.type) {
              if (((o = n.done ? v : "suspendedYield"), l.arg === y)) continue;
              return { value: l.arg, done: n.done };
            }
            "throw" === l.type &&
              ((o = v), (n.method = "throw"), (n.arg = l.arg));
          }
        };
      }
      function A(e, r) {
        var n = r.method,
          o = e.iterator[n];
        if (o === t)
          return (
            (r.delegate = null),
            ("throw" === n &&
              e.iterator.return &&
              ((r.method = "return"),
              (r.arg = t),
              A(e, r),
              "throw" === r.method)) ||
              ("return" !== n &&
                ((r.method = "throw"),
                (r.arg = new TypeError(
                  "The iterator does not provide a '" + n + "' method"
                )))),
            y
          );
        var a = p(o, e.iterator, r.arg);
        if ("throw" === a.type)
          return (r.method = "throw"), (r.arg = a.arg), (r.delegate = null), y;
        var i = a.arg;
        return i
          ? i.done
            ? ((r[e.resultName] = i.value),
              (r.next = e.nextLoc),
              "return" !== r.method && ((r.method = "next"), (r.arg = t)),
              (r.delegate = null),
              y)
            : i
          : ((r.method = "throw"),
            (r.arg = new TypeError("iterator result is not an object")),
            (r.delegate = null),
            y);
      }
      function L(t) {
        var e = { tryLoc: t[0] };
        1 in t && (e.catchLoc = t[1]),
          2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
          this.tryEntries.push(e);
      }
      function I(t) {
        var e = t.completion || {};
        (e.type = "normal"), delete e.arg, (t.completion = e);
      }
      function P(t) {
        (this.tryEntries = [{ tryLoc: "root" }]),
          t.forEach(L, this),
          this.reset(!0);
      }
      function N(e) {
        if (e || "" === e) {
          var r = e[u];
          if (r) return r.call(e);
          if ("function" == typeof e.next) return e;
          if (!isNaN(e.length)) {
            var o = -1,
              a = function r() {
                for (; ++o < e.length; )
                  if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r;
                return (r.value = t), (r.done = !0), r;
              };
            return (a.next = a);
          }
        }
        throw new TypeError(typeof e + " is not iterable");
      }
      return (
        (g.prototype = b),
        o(O, "constructor", { value: b, configurable: !0 }),
        o(b, "constructor", { value: g, configurable: !0 }),
        (g.displayName = s(b, l, "GeneratorFunction")),
        (e.isGeneratorFunction = function (t) {
          var e = "function" == typeof t && t.constructor;
          return (
            !!e &&
            (e === g || "GeneratorFunction" === (e.displayName || e.name))
          );
        }),
        (e.mark = function (t) {
          return (
            Object.setPrototypeOf
              ? Object.setPrototypeOf(t, b)
              : ((t.__proto__ = b), s(t, l, "GeneratorFunction")),
            (t.prototype = Object.create(O)),
            t
          );
        }),
        (e.awrap = function (t) {
          return { __await: t };
        }),
        E(j.prototype),
        s(j.prototype, c, function () {
          return this;
        }),
        (e.AsyncIterator = j),
        (e.async = function (t, r, n, o, a) {
          void 0 === a && (a = Promise);
          var i = new j(f(t, r, n, o), a);
          return e.isGeneratorFunction(r)
            ? i
            : i.next().then(function (t) {
                return t.done ? t.value : i.next();
              });
        }),
        E(O),
        s(O, l, "Generator"),
        s(O, u, function () {
          return this;
        }),
        s(O, "toString", function () {
          return "[object Generator]";
        }),
        (e.keys = function (t) {
          var e = Object(t),
            r = [];
          for (var n in e) r.push(n);
          return (
            r.reverse(),
            function t() {
              for (; r.length; ) {
                var n = r.pop();
                if (n in e) return (t.value = n), (t.done = !1), t;
              }
              return (t.done = !0), t;
            }
          );
        }),
        (e.values = N),
        (P.prototype = {
          constructor: P,
          reset: function (e) {
            if (
              ((this.prev = 0),
              (this.next = 0),
              (this.sent = this._sent = t),
              (this.done = !1),
              (this.delegate = null),
              (this.method = "next"),
              (this.arg = t),
              this.tryEntries.forEach(I),
              !e)
            )
              for (var r in this)
                "t" === r.charAt(0) &&
                  n.call(this, r) &&
                  !isNaN(+r.slice(1)) &&
                  (this[r] = t);
          },
          stop: function () {
            this.done = !0;
            var t = this.tryEntries[0].completion;
            if ("throw" === t.type) throw t.arg;
            return this.rval;
          },
          dispatchException: function (e) {
            if (this.done) throw e;
            var r = this;
            function o(n, o) {
              return (
                (u.type = "throw"),
                (u.arg = e),
                (r.next = n),
                o && ((r.method = "next"), (r.arg = t)),
                !!o
              );
            }
            for (var a = this.tryEntries.length - 1; a >= 0; --a) {
              var i = this.tryEntries[a],
                u = i.completion;
              if ("root" === i.tryLoc) return o("end");
              if (i.tryLoc <= this.prev) {
                var c = n.call(i, "catchLoc"),
                  l = n.call(i, "finallyLoc");
                if (c && l) {
                  if (this.prev < i.catchLoc) return o(i.catchLoc, !0);
                  if (this.prev < i.finallyLoc) return o(i.finallyLoc);
                } else if (c) {
                  if (this.prev < i.catchLoc) return o(i.catchLoc, !0);
                } else {
                  if (!l)
                    throw new Error("try statement without catch or finally");
                  if (this.prev < i.finallyLoc) return o(i.finallyLoc);
                }
              }
            }
          },
          abrupt: function (t, e) {
            for (var r = this.tryEntries.length - 1; r >= 0; --r) {
              var o = this.tryEntries[r];
              if (
                o.tryLoc <= this.prev &&
                n.call(o, "finallyLoc") &&
                this.prev < o.finallyLoc
              ) {
                var a = o;
                break;
              }
            }
            a &&
              ("break" === t || "continue" === t) &&
              a.tryLoc <= e &&
              e <= a.finallyLoc &&
              (a = null);
            var i = a ? a.completion : {};
            return (
              (i.type = t),
              (i.arg = e),
              a
                ? ((this.method = "next"), (this.next = a.finallyLoc), y)
                : this.complete(i)
            );
          },
          complete: function (t, e) {
            if ("throw" === t.type) throw t.arg;
            return (
              "break" === t.type || "continue" === t.type
                ? (this.next = t.arg)
                : "return" === t.type
                ? ((this.rval = this.arg = t.arg),
                  (this.method = "return"),
                  (this.next = "end"))
                : "normal" === t.type && e && (this.next = e),
              y
            );
          },
          finish: function (t) {
            for (var e = this.tryEntries.length - 1; e >= 0; --e) {
              var r = this.tryEntries[e];
              if (r.finallyLoc === t)
                return this.complete(r.completion, r.afterLoc), I(r), y;
            }
          },
          catch: function (t) {
            for (var e = this.tryEntries.length - 1; e >= 0; --e) {
              var r = this.tryEntries[e];
              if (r.tryLoc === t) {
                var n = r.completion;
                if ("throw" === n.type) {
                  var o = n.arg;
                  I(r);
                }
                return o;
              }
            }
            throw new Error("illegal catch attempt");
          },
          delegateYield: function (e, r, n) {
            return (
              (this.delegate = { iterator: N(e), resultName: r, nextLoc: n }),
              "next" === this.method && (this.arg = t),
              y
            );
          },
        }),
        e
      );
    }
    var u = window,
      c = u.$axure,
      l = u.$;
    function s(t) {
      t = t || 32;
      for (
        var e = "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",
          r = e.length,
          n = "",
          o = 0;
        o < t;
        o++
      )
        n += e.charAt(Math.floor(Math.random() * r));
      return n;
    }
    var f = { "\u7f16\u8f91\u5668\u914d\u7f6e": "axhubEditorConfig" },
      p = (function () {
        var t = Object(n.a)(
          i().mark(function t(e, r, u) {
            var c, p, d, h, v, y, _;
            return i().wrap(
              function (t) {
                for (;;)
                  switch ((t.prev = t.next)) {
                    case 0:
                      return (
                        (t.prev = 0),
                        (d =
                          l(e)
                            .parent()
                            .find('[data-label="axhub-config"]')
                            .attr("id") || ""),
                        (h =
                          l(e)
                            .parent()
                            .find('[data-label="axhub-data"]')
                            .attr("id") || ""),
                        (v = d ? Object(o.d)(d, f) : {}),
                        (t.next = 6),
                        Object(o.f)(e, v)
                      );
                    case 6:
                      (y = t.sent),
                        ((v = y.config || v).axID = v.axID || e.id + s(6)),
                        null !== (c = window) &&
                          void 0 !== c &&
                          null !== (p = c.axAntd) &&
                          void 0 !== p &&
                          p[v.axID] &&
                          (v.axID = e.id + s(6)),
                        (_ = function () {
                          return (h ? Object(o.e)(h) : { data: [], keys: [] })
                            .data;
                        }),
                        (window.axllm = window.axllm || {}),
                        (window.axllm[v.axID] = window.axllm[v.axID] || {}),
                        (window.axllm[v.axID].request = (function () {
                          var t = Object(n.a)(
                            i().mark(function t(r) {
                              var n;
                              return i().wrap(function (t) {
                                for (;;)
                                  switch ((t.prev = t.next)) {
                                    case 0:
                                      return (
                                        r &&
                                          Object(o.a)(h, {
                                            role: {
                                              type: "text",
                                              text: "user",
                                            },
                                            content: { type: "text", text: r },
                                          }),
                                        (t.next = 3),
                                        u(v, _())
                                      );
                                    case 3:
                                      (n = t.sent),
                                        Object(o.k)(
                                          "".concat(v.axID, "_message"),
                                          n || ""
                                        ),
                                        Object(o.a)(h, {
                                          role: {
                                            type: "text",
                                            text: "assistant",
                                          },
                                          content: { type: "text", text: n },
                                        }),
                                        Object(o.h)(e.id, "onSelect");
                                    case 7:
                                    case "end":
                                      return t.stop();
                                  }
                              }, t);
                            })
                          );
                          return function (e) {
                            return t.apply(this, arguments);
                          };
                        })()),
                        -1 !== window.location.host.indexOf("127.0.0.1") &&
                          l(e).click(
                            (function () {
                              var t = Object(n.a)(
                                i().mark(function t(n) {
                                  var u;
                                  return i().wrap(function (t) {
                                    for (;;)
                                      switch ((t.prev = t.next)) {
                                        case 0:
                                          if (!n.altKey) {
                                            t.next = 5;
                                            break;
                                          }
                                          if (window.openAxhubEditor) {
                                            t.next = 4;
                                            break;
                                          }
                                          return (
                                            (t.next = 4),
                                            Object(o.g)(
                                              (null === (u = v) || void 0 === u
                                                ? void 0
                                                : u.AxhubEditorUrl) ||
                                                "https://static.axhub.cn/charts/editor-v1.5.js"
                                            )
                                          );
                                        case 4:
                                          window.openAxhubEditor({
                                            element: {
                                              right: ["t1", "b2", "u1"],
                                              lib: "llm",
                                              container: e,
                                            },
                                            attributesConfig: r(v),
                                            onConfigChange: function (t) {
                                              return Object(a.a)(v, t), r(v);
                                            },
                                            getConfig: function () {
                                              return v;
                                            },
                                          });
                                        case 5:
                                        case "end":
                                          return t.stop();
                                      }
                                  }, t);
                                })
                              );
                              return function (e) {
                                return t.apply(this, arguments);
                              };
                            })()
                          ),
                        (t.next = 20);
                      break;
                    case 17:
                      (t.prev = 17),
                        (t.t0 = t.catch(0)),
                        console.error(
                          "\u6e32\u67d3\u9047\u5230\u9ebb\u70e6\u5566\uff1a",
                          t.t0
                        );
                    case 20:
                    case "end":
                      return t.stop();
                  }
              },
              t,
              null,
              [[0, 17]]
            );
          })
        );
        return function (e, r, n) {
          return t.apply(this, arguments);
        };
      })();
    c("@axhub-chatgpt")
      .$()
      .map(
        (function () {
          var t = Object(n.a)(
            i().mark(function t(e, r) {
              return i().wrap(function (t) {
                for (;;)
                  switch ((t.prev = t.next)) {
                    case 0:
                      p(
                        r,
                        function (t) {
                          var e, r, n;
                          return {
                            config: {
                              type: "collapse",
                              children: [
                                {
                                  type: "collapse-panel",
                                  displayName: "\u57fa\u7840\u914d\u7f6e",
                                  attributeId: "baseConfig",
                                  children: [
                                    {
                                      type: "input",
                                      attributeId: "apikey",
                                      displayName: "APIKEY",
                                      info: "OpenAI \u7684 APIkey ",
                                      initialValue: t.apikey,
                                    },
                                    {
                                      type: "input",
                                      attributeId: "proxy",
                                      displayName: "API \u4ee3\u7406",
                                      info: "OpenAI \u7684 API \u8bf7\u6c42\u7684\u4ee3\u7406",
                                      initialValue: t.proxy,
                                    },
                                    {
                                      type: "input",
                                      attributeId: "model",
                                      displayName: "AI \u6a21\u578b",
                                      info: "\u8981\u4f7f\u7528\u7684\u6a21\u578b\u7684 ID",
                                      initialValue: t.model || "gpt-3.5-turbo",
                                    },
                                    {
                                      type: "input-number",
                                      attributeId: "temperature",
                                      displayName: "temperature",
                                      info: "\u4f7f\u7528\u4ec0\u4e48\u91c7\u6837\u6e29\u5ea6\uff0c\u4ecb\u4e8e 0 \u548c 2 \u4e4b\u95f4\u3002\u8f83\u9ad8\u7684\u503c\uff08\u5982 0.8\uff09\u5c06\u4f7f\u8f93\u51fa\u66f4\u52a0\u968f\u673a\uff0c\u800c\u8f83\u4f4e\u7684\u503c\uff08\u5982 0.2\uff09\u5c06\u4f7f\u8f93\u51fa\u66f4\u52a0\u96c6\u4e2d\u548c\u786e\u5b9a\u3002",
                                      initialValue:
                                        null !== (e = t.temperature) &&
                                        void 0 !== e
                                          ? e
                                          : 1,
                                    },
                                    {
                                      type: "input-number",
                                      attributeId: "presence_penalty",
                                      displayName: "presence_penalty",
                                      info: "-2.0 \u548c 2.0 \u4e4b\u95f4\u7684\u6570\u5b57\u3002 \u6b63\u503c\u4f1a\u6839\u636e\u5230\u76ee\u524d\u4e3a\u6b62\u662f\u5426\u51fa\u73b0\u5728\u6587\u672c\u4e2d\u6765\u60e9\u7f5a\u65b0\u6807\u8bb0\uff0c\u4ece\u800c\u589e\u52a0\u6a21\u578b\u8c08\u8bba\u65b0\u4e3b\u9898\u7684\u53ef\u80fd\u6027",
                                      initialValue:
                                        null !== (r = t.presence_penalty) &&
                                        void 0 !== r
                                          ? r
                                          : 0,
                                    },
                                    {
                                      type: "input-number",
                                      attributeId: "frequency_penalty",
                                      displayName: "frequency_penalty",
                                      info: "-2.0 \u548c 2.0 \u4e4b\u95f4\u7684\u6570\u5b57\u3002 \u6b63\u503c\u4f1a\u6839\u636e\u5230\u76ee\u524d\u4e3a\u6b62\u6587\u672c\u4e2d\u7684\u73b0\u6709\u9891\u7387\u5bf9\u65b0\u6807\u8bb0\u8fdb\u884c\u60e9\u7f5a\uff0c\u4ece\u800c\u964d\u4f4e\u6a21\u578b\u9010\u5b57\u91cd\u590d\u540c\u4e00\u884c\u7684\u53ef\u80fd\u6027",
                                      initialValue:
                                        null !== (n = t.frequency_penalty) &&
                                        void 0 !== n
                                          ? n
                                          : 0,
                                    },
                                  ],
                                },
                                {
                                  type: "collapse-panel",
                                  displayName: "\u4ea4\u4e92\u65b9\u5f0f",
                                  attributeId: "actionConfig",
                                  children: [
                                    {
                                      type: "group",
                                      displayName:
                                        "\u6700\u65b0\u56de\u590d\u6d88\u606f",
                                      info: "\u6700\u65b0\u56de\u590d\u6d88\u606f\u5168\u5c40\u53d8\u91cf\uff0c\u518d Axure - \u9879\u76ee - \u5168\u5c40\u53d8\u91cf\u521b\u5efa\u540e\uff0c\u5c31\u53ef\u4ee5\u5728\u76f8\u5173\u4ea4\u4e92\u4f7f\u7528\uff1b\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8bfb\u53d6 data \u4e2d\u7ee7\u5668\u6700\u65b0\u6570\u636e",
                                      children: [
                                        {
                                          type: "text",
                                          attributeId: "message",
                                          copyable: !0,
                                          initialValue: "".concat(
                                            t.axID,
                                            "_message"
                                          ),
                                          maxWidth: "100%",
                                        },
                                      ],
                                    },
                                    {
                                      type: "group",
                                      displayName: "\u8bf7\u6c42 GPT",
                                      info: "\u53d1\u8d77\u8bf7\u6c42\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\uff0c\u901a\u8fc7 Axure \u6253\u5f00\u6307\u5b9a\u94fe\u63a5\u4e8b\u4ef6\u53ef\u89e6\u53d1\uff0c\u8be6\u60c5\u770b\u6587\u6863",
                                      children: [
                                        {
                                          type: "text",
                                          attributeId: "updateConfig",
                                          copyable: !0,
                                          initialValue:
                                            "javascript:axllm.".concat(
                                              t.axID,
                                              ".request('')"
                                            ),
                                          maxWidth: "100%",
                                        },
                                      ],
                                    },
                                  ],
                                },
                              ],
                            },
                          };
                        },
                        (function () {
                          var t = Object(n.a)(
                            i().mark(function t(e, r) {
                              var n, o, a, u, c, l, s, f, p, d;
                              return i().wrap(function (t) {
                                for (;;)
                                  switch ((t.prev = t.next)) {
                                    case 0:
                                      return (
                                        (e.proxy =
                                          e.proxy || "https://api.openai.com"),
                                        (t.next = 3),
                                        fetch(
                                          e.proxy + "/v1/chat/completions",
                                          {
                                            method: "POST",
                                            headers: {
                                              "Content-Type":
                                                "application/json",
                                              Authorization: "Bearer ".concat(
                                                e.apikey
                                              ),
                                            },
                                            body: JSON.stringify({
                                              messages: r,
                                              temperature:
                                                null !== (n = e.temperature) &&
                                                void 0 !== n
                                                  ? n
                                                  : 1,
                                              max_tokens: e.maxTokens || 2048,
                                              n:
                                                null !== (o = e.n) &&
                                                void 0 !== o
                                                  ? o
                                                  : 1,
                                              model: e.model || "gpt-3.5-turbo",
                                              frequency_penalty:
                                                null !==
                                                  (a = e.frequencyPenalty) &&
                                                void 0 !== a
                                                  ? a
                                                  : 0,
                                              presence_penalty:
                                                null !==
                                                  (u = e.presencePenalty) &&
                                                void 0 !== u
                                                  ? u
                                                  : 0,
                                            }),
                                          }
                                        )
                                      );
                                    case 3:
                                      return (
                                        (l = t.sent), (t.next = 6), l.json()
                                      );
                                    case 6:
                                      if (((s = t.sent), l.ok)) {
                                        t.next = 9;
                                        break;
                                      }
                                      throw new Error(
                                        (null === s ||
                                        void 0 === s ||
                                        null === (f = s.error) ||
                                        void 0 === f
                                          ? void 0
                                          : f.message) ||
                                          "OpenAI API request failed"
                                      );
                                    case 9:
                                      if (
                                        (p =
                                          (null === (c = s.choices) ||
                                          void 0 === c
                                            ? void 0
                                            : c.length) > 0
                                            ? s.choices[0].message.content.trim()
                                            : null)
                                      ) {
                                        t.next = 12;
                                        break;
                                      }
                                      throw new Error(
                                        "Failed to generate graph data"
                                      );
                                    case 12:
                                      return (
                                        (d = p.replace(/'|\u201c/g, '"')),
                                        t.abrupt("return", d)
                                      );
                                    case 14:
                                    case "end":
                                      return t.stop();
                                  }
                              }, t);
                            })
                          );
                          return function (e, r) {
                            return t.apply(this, arguments);
                          };
                        })()
                      );
                    case 3:
                    case "end":
                      return t.stop();
                  }
              }, t);
            })
          );
          return function (e, r) {
            return t.apply(this, arguments);
          };
        })()
      ),
      c("@axhub-qwen")
        .$()
        .map(
          (function () {
            var t = Object(n.a)(
              i().mark(function t(e, r) {
                return i().wrap(function (t) {
                  for (;;)
                    switch ((t.prev = t.next)) {
                      case 0:
                        p(
                          r,
                          function (t) {
                            var e, r, n;
                            return {
                              config: {
                                type: "collapse",
                                children: [
                                  {
                                    type: "collapse-panel",
                                    displayName: "\u57fa\u7840\u914d\u7f6e",
                                    attributeId: "baseConfig",
                                    children: [
                                      {
                                        type: "input",
                                        attributeId: "apikey",
                                        displayName: "API-Key",
                                        info: "\u5343\u4e49\u901a\u95ee\u7684 APIkey ",
                                        initialValue: t.apikey,
                                      },
                                      {
                                        type: "input",
                                        attributeId: "model",
                                        displayName: "AI \u6a21\u578b",
                                        info: "\u8981\u4f7f\u7528\u7684\u6a21\u578b\u7684 ID",
                                        initialValue: t.model || "qwen-max",
                                      },
                                      {
                                        type: "input-number",
                                        attributeId: "temperature",
                                        displayName: "temperature",
                                        info: "\u7528\u4e8e\u63a7\u5236\u968f\u673a\u6027\u548c\u591a\u6837\u6027\u7684\u7a0b\u5ea6\u3002\u5177\u4f53\u6765\u8bf4\uff0ctemperature\u503c\u63a7\u5236\u4e86\u751f\u6210\u6587\u672c\u65f6\u5bf9\u6bcf\u4e2a\u5019\u9009\u8bcd\u7684\u6982\u7387\u5206\u5e03\u8fdb\u884c\u5e73\u6ed1\u7684\u7a0b\u5ea6\u3002\u8f83\u9ad8\u7684temperature\u503c\u4f1a\u964d\u4f4e\u6982\u7387\u5206\u5e03\u7684\u5cf0\u503c\uff0c\u4f7f\u5f97\u66f4\u591a\u7684\u4f4e\u6982\u7387\u8bcd\u88ab\u9009\u62e9\uff0c\u751f\u6210\u7ed3\u679c\u66f4\u52a0\u591a\u6837\u5316\uff1b\u800c\u8f83\u4f4e\u7684temperature\u503c\u5219\u4f1a\u589e\u5f3a\u6982\u7387\u5206\u5e03\u7684\u5cf0\u503c\uff0c\u4f7f\u5f97\u9ad8\u6982\u7387\u8bcd\u66f4\u5bb9\u6613\u88ab\u9009\u62e9\uff0c\u751f\u6210\u7ed3\u679c\u66f4\u52a0\u786e\u5b9a\u3002\u53d6\u503c\u8303\u56f4\uff1a [0, 2)\uff0c\u4e0d\u5efa\u8bae\u53d6\u503c\u4e3a0\uff0c\u65e0\u610f\u4e49",
                                        initialValue:
                                          null !== (e = t.temperature) &&
                                          void 0 !== e
                                            ? e
                                            : 1,
                                      },
                                      {
                                        type: "input-number",
                                        attributeId: "repetition_penalty",
                                        displayName: "repetition_penalty",
                                        info: "\u7528\u4e8e\u63a7\u5236\u6a21\u578b\u751f\u6210\u65f6\u7684\u91cd\u590d\u5ea6\u3002\u63d0\u9ad8repetition_penalty\u65f6\u53ef\u4ee5\u964d\u4f4e\u6a21\u578b\u751f\u6210\u7684\u91cd\u590d\u5ea6\u30021.0\u8868\u793a\u4e0d\u505a\u60e9\u7f5a\u3002\u9ed8\u8ba4\u4e3a1.1",
                                        initialValue:
                                          null !== (r = t.repetition_penalty) &&
                                          void 0 !== r
                                            ? r
                                            : 1.1,
                                      },
                                      {
                                        type: "input-number",
                                        attributeId: "top_p",
                                        displayName: "top_p",
                                        info: "-\u751f\u6210\u8fc7\u7a0b\u4e2d\u6838\u91c7\u6837\u65b9\u6cd5\u6982\u7387\u9608\u503c\uff0c\u4f8b\u5982\uff0c\u53d6\u503c\u4e3a0.8\u65f6\uff0c\u4ec5\u4fdd\u7559\u6982\u7387\u52a0\u8d77\u6765\u5927\u4e8e\u7b49\u4e8e0.8\u7684\u6700\u53ef\u80fdtoken\u7684\u6700\u5c0f\u96c6\u5408\u4f5c\u4e3a\u5019\u9009\u96c6\u3002\u53d6\u503c\u8303\u56f4\u4e3a\uff080,1.0)\uff0c\u53d6\u503c\u8d8a\u5927\uff0c\u751f\u6210\u7684\u968f\u673a\u6027\u8d8a\u9ad8\uff1b\u53d6\u503c\u8d8a\u4f4e\uff0c\u751f\u6210\u7684\u786e\u5b9a\u6027\u8d8a\u9ad8\u3002",
                                        initialValue:
                                          null !== (n = t.top_p) && void 0 !== n
                                            ? n
                                            : 0,
                                      },
                                    ],
                                  },
                                  {
                                    type: "collapse-panel",
                                    displayName: "\u4ea4\u4e92\u65b9\u5f0f",
                                    attributeId: "actionConfig",
                                    children: [
                                      {
                                        type: "group",
                                        displayName:
                                          "\u6700\u65b0\u56de\u590d\u6d88\u606f",
                                        info: "\u6700\u65b0\u56de\u590d\u6d88\u606f\u5168\u5c40\u53d8\u91cf\uff0c\u518d Axure - \u9879\u76ee - \u5168\u5c40\u53d8\u91cf\u521b\u5efa\u540e\uff0c\u5c31\u53ef\u4ee5\u5728\u76f8\u5173\u4ea4\u4e92\u4f7f\u7528\uff1b\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8bfb\u53d6 data \u4e2d\u7ee7\u5668\u6700\u65b0\u6570\u636e",
                                        children: [
                                          {
                                            type: "text",
                                            attributeId: "message",
                                            copyable: !0,
                                            initialValue: "".concat(
                                              t.axID,
                                              "_message"
                                            ),
                                            maxWidth: "100%",
                                          },
                                        ],
                                      },
                                      {
                                        type: "group",
                                        displayName: "\u8bf7\u6c42 GPT",
                                        info: "\u53d1\u8d77\u8bf7\u6c42\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\uff0c\u901a\u8fc7 Axure \u6253\u5f00\u6307\u5b9a\u94fe\u63a5\u4e8b\u4ef6\u53ef\u89e6\u53d1\uff0c\u8be6\u60c5\u770b\u6587\u6863",
                                        children: [
                                          {
                                            type: "text",
                                            attributeId: "updateConfig",
                                            copyable: !0,
                                            initialValue:
                                              "javascript:axllm.".concat(
                                                t.axID,
                                                ".request('')"
                                              ),
                                            maxWidth: "100%",
                                          },
                                        ],
                                      },
                                    ],
                                  },
                                ],
                              },
                            };
                          },
                          (function () {
                            var t = Object(n.a)(
                              i().mark(function t(e, r) {
                                var n, o, a, u, c, l, s;
                                return i().wrap(function (t) {
                                  for (;;)
                                    switch ((t.prev = t.next)) {
                                      case 0:
                                        return (
                                          (t.next = 2),
                                          fetch(
                                            "https://api.axhub.im/qwen/api/v1/services/aigc/text-generation/generation",
                                            {
                                              method: "POST",
                                              headers: {
                                                "Content-Type":
                                                  "application/json",
                                                Authorization: "Bearer ".concat(
                                                  e.apikey
                                                ),
                                              },
                                              body: JSON.stringify({
                                                input: { messages: r },
                                                temperature:
                                                  null !==
                                                    (n = e.temperature) &&
                                                  void 0 !== n
                                                    ? n
                                                    : 1,
                                                max_tokens: e.maxTokens || 1500,
                                                top_p:
                                                  null !== (o = e.top_p) &&
                                                  void 0 !== o
                                                    ? o
                                                    : 0.8,
                                                model: e.model || "qwen-max",
                                                repetition_penalty:
                                                  null !==
                                                    (a =
                                                      e.repetition_penalty) &&
                                                  void 0 !== a
                                                    ? a
                                                    : 1.1,
                                              }),
                                            }
                                          )
                                        );
                                      case 2:
                                        return (
                                          (c = t.sent), (t.next = 5), c.json()
                                        );
                                      case 5:
                                        if (
                                          ((l = t.sent),
                                          (s =
                                            null !== l &&
                                            void 0 !== l &&
                                            null !== (u = l.output) &&
                                            void 0 !== u &&
                                            u.text
                                              ? l.output.text.trim()
                                              : null))
                                        ) {
                                          t.next = 9;
                                          break;
                                        }
                                        throw new Error(
                                          "Failed to generate graph data"
                                        );
                                      case 9:
                                        return (
                                          console.warn(s), t.abrupt("return", s)
                                        );
                                      case 11:
                                      case "end":
                                        return t.stop();
                                    }
                                }, t);
                              })
                            );
                            return function (e, r) {
                              return t.apply(this, arguments);
                            };
                          })()
                        );
                      case 3:
                      case "end":
                        return t.stop();
                    }
                }, t);
              })
            );
            return function (e, r) {
              return t.apply(this, arguments);
            };
          })()
        );
  },
  20: function (t, e, r) {
    "use strict";
    function n(t, e, r, n, o, a, i) {
      try {
        var u = t[a](i),
          c = u.value;
      } catch (l) {
        return void r(l);
      }
      u.done ? e(c) : Promise.resolve(c).then(n, o);
    }
    function o(t) {
      return function () {
        var e = this,
          r = arguments;
        return new Promise(function (o, a) {
          var i = t.apply(e, r);
          function u(t) {
            n(i, o, a, u, c, "next", t);
          }
          function c(t) {
            n(i, o, a, u, c, "throw", t);
          }
          u(void 0);
        });
      };
    }
    r.d(e, "a", function () {
      return o;
    });
  },
  36: function (t, e, r) {
    "use strict";
    var n = {}.toString;
    e.a = function (t, e) {
      return n.call(t) === "[object " + e + "]";
    };
  },
  37: function (t, e, r) {
    "use strict";
    var n = r(55),
      o = function (t) {
        return "object" === typeof t && null !== t;
      },
      a = r(36),
      i = function (t) {
        if (!o(t) || !Object(a.a)(t, "Object")) return !1;
        if (null === Object.getPrototypeOf(t)) return !0;
        for (var e = t; null !== Object.getPrototypeOf(e); )
          e = Object.getPrototypeOf(e);
        return Object.getPrototypeOf(t) === e;
      };
    function u(t, e) {
      if (Object.hasOwn) return Object.hasOwn(t, e);
      if (null == t)
        throw new TypeError("Cannot convert undefined or null to object");
      return Object.prototype.hasOwnProperty.call(Object(t), e);
    }
    function c(t, e, r, o) {
      for (var a in ((r = r || 0), (o = o || 5), e))
        if (u(e, a)) {
          var l = e[a];
          null !== l && i(l)
            ? (i(t[a]) || (t[a] = {}),
              r < o ? c(t[a], l, r + 1, o) : (t[a] = e[a]))
            : Object(n.a)(l)
            ? ((t[a] = []), (t[a] = t[a].concat(l)))
            : void 0 !== l && (t[a] = l);
        }
    }
    e.a = function (t) {
      for (var e = [], r = 1; r < arguments.length; r++)
        e[r - 1] = arguments[r];
      for (var n = 0; n < e.length; n += 1) c(t, e[n]);
      return t;
    };
  },
  54: function (t, e, r) {
    var n, o, a;
    (a = function () {
      var t,
        e,
        r = document,
        n = r.getElementsByTagName("head")[0],
        o = {},
        a = {},
        i = {},
        u = {};
      function c(t, e) {
        for (var r = 0, n = t.length; r < n; ++r) if (!e(t[r])) return !1;
        return 1;
      }
      function l(t, e) {
        c(t, function (t) {
          return e(t), 1;
        });
      }
      function s(e, r, n) {
        e = e.push ? e : [e];
        var p = r && r.call,
          d = p ? r : n,
          h = p ? e.join("") : r,
          v = e.length;
        function y(t) {
          return t.call ? t() : o[t];
        }
        function _() {
          if (!--v)
            for (var t in ((o[h] = 1), d && d(), i))
              c(t.split("|"), y) && !l(i[t], y) && (i[t] = []);
        }
        return (
          setTimeout(function () {
            l(e, function e(r, n) {
              return null === r
                ? _()
                : (n ||
                    /^https?:\/\//.test(r) ||
                    !t ||
                    (r = -1 === r.indexOf(".js") ? t + r + ".js" : t + r),
                  u[r]
                    ? (h && (a[h] = 1),
                      2 == u[r]
                        ? _()
                        : setTimeout(function () {
                            e(r, !0);
                          }, 0))
                    : ((u[r] = 1), h && (a[h] = 1), void f(r, _)));
            });
          }, 0),
          s
        );
      }
      function f(t, o) {
        var a,
          i = r.createElement("script");
        (i.onload =
          i.onerror =
          i.onreadystatechange =
            function () {
              (i.readyState && !/^c|loade/.test(i.readyState)) ||
                a ||
                ((i.onload = i.onreadystatechange = null),
                (a = 1),
                (u[t] = 2),
                o());
            }),
          (i.async = 1),
          (i.src = e ? t + (-1 === t.indexOf("?") ? "?" : "&") + e : t),
          n.insertBefore(i, n.lastChild);
      }
      return (
        (s.get = f),
        (s.order = function (t, e, r) {
          !(function n(o) {
            (o = t.shift()), t.length ? s(o, n) : s(o, e, r);
          })();
        }),
        (s.path = function (e) {
          t = e;
        }),
        (s.urlArgs = function (t) {
          e = t;
        }),
        (s.ready = function (t, e, r) {
          t = t.push ? t : [t];
          var n,
            a = [];
          return (
            !l(t, function (t) {
              o[t] || a.push(t);
            }) &&
            c(t, function (t) {
              return o[t];
            })
              ? e()
              : ((n = t.join("|")),
                (i[n] = i[n] || []),
                i[n].push(e),
                r && r(a)),
            s
          );
        }),
        (s.done = function (t) {
          s([null], t);
        }),
        s
      );
    }),
      t.exports
        ? (t.exports = a())
        : void 0 ===
            (o = "function" === typeof (n = a) ? n.call(e, r, e, t) : n) ||
          (t.exports = o);
  },
  55: function (t, e, r) {
    "use strict";
    var n = r(36);
    e.a = function (t) {
      return Array.isArray ? Array.isArray(t) : Object(n.a)(t, "Array");
    };
  },
});
